package com.vehicle.mapper;

import com.vehicle.pojo.ApplyUse;
import com.vehicle.pojo.Check;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ApplyUseMapper {

    //查询所有用车申请
    public List<ApplyUse> findAllApplyUse(@Param(value = "status") String status);

    //删除用车申请
    public void delApplyUse(Integer applyid);

    //添加用车申请
    void applyAdd(ApplyUse applyUse);

    //根据Id查询用车申请
    public ApplyUse selectApplyUseById(Integer applyid);

    //根据状态查询申请表
    List<ApplyUse> findApplyUseByStatus(@Param("status") Integer status,@Param("deptid") Integer deptid);

    //修改申请表状态
    void updateApplyUseState(@Param("applyid") Integer applyid,@Param("status") Integer status);

    //出车时添加车辆及时间
    void updateCarPlateByApplyId(@Param("carplate") String carplate, @Param("applyid") Integer applyid, @Param("sendCarTime") Date sendCarTime,@Param("sendCarUser") String sendCarUser);

}
